import request from '@/utils/request'

// 获取楼宇
export function getParkListAPI(params) {
  return request({
    url: '/park/building',
    method: 'get',
    params
  })
}

// 添加楼宇
export function addParkAPI(data) {
  return request({
    url: '/park/building',
    method: 'post',
    data

  })
}

// 删除楼宇
export function delParkAPI(id) {
  return request({
    url: `/park/building/${id}`,
    method: 'delete'
  })
}

// 数据回显
export function getParkDetailAPI(id) {
  return request({
    url: `/park/building/${id}`,
    method: 'get'
  })
}

// 修改楼宇
export function editParkAPI(data) {
  return request({
    url: `/park/building`,
    method: 'put',
    data
  })
}

